/**
* Copyright (c) By zengqh.
*
* This program is just for fun or demo, in the hope that it  
* will be useful, you can redistribute it and/or modify freely.
*
* Time: 2012/07/16
* File: RenderWin32.h
* Blog: http://www.cnblogs.com/zengqh/
**/

#ifndef RenderWin32_h__
#define RenderWin32_h__

#include "RenderWindow.h"

class RenderWin32 : public RenderWindow
{
public:
	RenderWin32();
	~RenderWin32();
	bool createWindow(const CreateWindowParams& param);
	bool isWindowActive() const;

	HINSTANCE getAppInstance() const;
	u32 getWindowID() const;
	HDC getWindowDC() const;

	void onWindowSizeChange(s32 w, s32 h);

protected:
	bool createWindowImpl();
protected:

	CreateWindowParams			_window_params;
	HINSTANCE					_app_instance;
	HDC							_window_hdc;
};
#endif    /* RenderWin32_h__ */